//
//  MLNodelObj.m
//  09-静态单元格
//
//  Created by Sizhu Ba on 2017/9/7.
//  Copyright © 2017年 mac. All rights reserved.
//

#import "MLNodelObj.h"

@implementation MLNodelObj

+(instancetype)sharedMLNodelObj:(NSString *)parentID andOwnID:(NSString *) ownID andName:(NSString *) name andLevel:(int)level andExpand:(BOOL) isexpand andLeaf:(BOOL)isleaf andRoot:(BOOL) isroot{
        MLNodelObj * instance ;
    
//    var level     : NSInteger = 0   //级别
//    var expand    : Bool = false    //是否展开
//    var leaf      : Bool = false    //是否叶子(没有子节点)
//    var root      : Bool = false    //是否根节点
        instance = [[self alloc]init];
        instance.level = 0;
        instance.expand = false;
        instance.leaf = false;
        instance.root = false;
    
    
        instance.parentID = parentID;
        instance.name = name;
        instance.ownID = ownID;
        instance.level = level;
        instance.leaf = isleaf;
        instance.root = isroot;
        instance.expand = isexpand;
        

    return instance;
}

-(NSString *)decription{
    
    
    NSString * str =[NSString stringWithFormat:@"ksdfhk%d",123];
    
    return str;
}
@end
